#ifndef _PUBLIC_H
#define _PUBLIC_H

//#include <stdint.h> //C51中没有？

typedef unsigned char uint8_t;
typedef unsigned int uint16_t;

//定义枚举类型 -> BIT位
typedef enum
{
  BIT0 = (uint8_t)(0x01<<0),
  BIT1 = (uint8_t)(0x01<<1),
  BIT2 = (uint8_t)(0x01<<2),
  BIT3 = (uint8_t)(0x01<<3),
  BIT4 = (uint8_t)(0x01<<4),
  BIT5 = (uint8_t)(0x01<<5),
  BIT6 = (uint8_t)(0x01<<6),
  BIT7 = (uint8_t)(0x01<<7),
}BIT_t;



#endif 